package com.ims.core.doc.service.impl;

import java.util.List;
import com.ims.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ims.core.doc.mapper.TInNon1011Mapper;
import com.ims.core.doc.domain.TInNon1011;
import com.ims.core.doc.service.ITInNon1011Service;

/**
 *  医疗电子票据（住院）1011Service业务层处理
 *
 * @author IMS
 * @date 2024-11-25
 */
@Service
public class TInNon1011ServiceImpl implements ITInNon1011Service
{
    @Autowired
    private TInNon1011Mapper tInNon1011Mapper;

    /**
     * 查询 医疗电子票据（住院）1011
     *
     * @param id  医疗电子票据（住院）1011主键
     * @return  医疗电子票据（住院）1011
     */
    @Override
    public TInNon1011 selectTInNon1011ById(Long id)
    {
        return tInNon1011Mapper.selectTInNon1011ById(id);
    }

    /**
     * 查询 医疗电子票据（住院）1011列表
     *
     * @param tInNon1011  医疗电子票据（住院）1011
     * @return  医疗电子票据（住院）1011
     */
    @Override
    public List<TInNon1011> selectTInNon1011List(TInNon1011 tInNon1011)
    {
        return tInNon1011Mapper.selectTInNon1011List(tInNon1011);
    }

    /**
     * 新增 医疗电子票据（住院）1011
     *
     * @param tInNon1011  医疗电子票据（住院）1011
     * @return 结果
     */
    @Override
    public int insertTInNon1011(TInNon1011 tInNon1011)
    {
        tInNon1011.setCreateTime(DateUtils.getNowDate());
        return tInNon1011Mapper.insertTInNon1011(tInNon1011);
    }

    /**
     * 修改 医疗电子票据（住院）1011
     *
     * @param tInNon1011  医疗电子票据（住院）1011
     * @return 结果
     */
    @Override
    public int updateTInNon1011(TInNon1011 tInNon1011)
    {
        tInNon1011.setUpdateTime(DateUtils.getNowDate());
        return tInNon1011Mapper.updateTInNon1011(tInNon1011);
    }

    /**
     * 批量删除 医疗电子票据（住院）1011
     *
     * @param ids 需要删除的 医疗电子票据（住院）1011主键
     * @return 结果
     */
    @Override
    public int deleteTInNon1011ByIds(Long[] ids)
    {
        return tInNon1011Mapper.deleteTInNon1011ByIds(ids);
    }

    /**
     * 删除 医疗电子票据（住院）1011信息
     *
     * @param id  医疗电子票据（住院）1011主键
     * @return 结果
     */
    @Override
    public int deleteTInNon1011ById(Long id)
    {
        return tInNon1011Mapper.deleteTInNon1011ById(id);
    }
}
